﻿#include "showrecord.h"
#include "ui_showrecord.h"

Showrecord::Showrecord(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Showrecord)
{
    ui->setupUi(this);
}

Showrecord::~Showrecord()
{
    delete ui;
}
void Showrecord::setattend(int flage, QString no, QString name, QString state)
{
    //表示未打卡
    if(flage == 1)
    {
        ui->label_number->setStyleSheet("QLabel{color: rgb(255, 0, 0)}");
        ui->label_name->setStyleSheet("QLabel{color: rgb(255, 0, 0)}");
        ui->label_if->setStyleSheet("QLabel{color: rgb(255, 0, 0)}");
    }

    ui->label_number->setText(no);
    ui->label_name->setText(name);
    ui->label_if->setText(state);
}
